import frame.MainGameFrame;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        MainGameFrame mainGameFrame = MainGameFrame.getInstance();

        //每隔50ms重新绘制一次窗口
        while(true){
            Thread.sleep(50);
            mainGameFrame.repaint();
        }
    }
}